package com.pctx.bibaregisterlogin.service;

import com.pctx.bibacommon.result.Result;

import java.util.Date;

public interface UserService {
    Result addDepartment(String departmentname, String username);

    //    Result addPosition(String positionname,String departmentname,String username);
    Result addPositionone(String positionname, String departmentuuid, String username);

    Result selectDepartment(String companyUuid);

    //    Result selectPosition(String username,String departmentname);
    Result selectPosition(String companyUuid, String departmentuuid);

    //Result addUser(String username,String name,String mobile,String mail,String sex,String departmentname,String positionname,String upperleader,String subordinate,String loginuser);
    Result addUser(String username, String name, String mobile, String mail, String sex, String departmentuuid, String positionuuid, String upperUuid, String subordinate);

    Result deleteUser(String username);

    Result updateUser(String username, String name, String mobile, String mail, String sex, String departmentuuid, String positionuuid, String upperleaderuuid, String subordinate);

    Result resetPassword(String username);

    Result hassubordinate(String companyUuid);

    Result personalMessage(String username) throws Exception;

    Result getUser4Company(String companyUuid, String username, Date startTime, Date endTime, String departmentUuid,
                           String upperUuid) throws Exception;

    Result getByUuid(String uuid) throws Exception;
}
